import Vue from 'vue'
import Vuex from 'vuex'
import comprehenSiveOpt from './ComprehensiveOptions.js'
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    comprehenSive:comprehenSiveOpt,
  },
  state: {
    qxxxData: [],
    DailyRain:[],
    FacstGrid:[],
    FacstGridPicture:[],
  },
  mutations: {
    updateQxxxData(state, newData) {
      state.qxxxData = newData;
    },
    updateDailyRain(state, newData) {
      state.DailyRain = newData;
    },
    updateFacstGrid(state, newData) {
      state.FacstGrid = newData;
    },
    updateFacstGridPicture(state, newData) {
      state.FacstGridPicture = newData;
    },
  }
})


